package com.gem.controller;

import com.gem.service.GameService;
import com.gem.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Author: Xhy
 * CreateTime: 2022-09-21 15:50
 * 游戏
 */

@RestController
@RequestMapping("/game")
@CrossOrigin

public class GameController {

    @Autowired
    private GameService gameService;


    /**
     * 获取游戏信息
     * @param roomId
     * @return
     */
    @GetMapping("/get")
    public R get(String roomId){
        return gameService.get(roomId);
    }
}
